package stuman.activity;

import com.StuMan.R;

import android.app.Activity;
import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.widget.TabHost;
import android.widget.TabHost.TabSpec;

public class TabPage extends TabActivity{
	
	@Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.tab);
        
        TabHost th = (TabHost)findViewById(android.R.id.tabhost);
        
        TabHost.TabSpec spec;
        spec = th.newTabSpec("tab1").setContent(new Intent(this, Login.class));
        spec.setIndicator("tab1");
        th.addTab(spec);
        
        spec = th.newTabSpec("tab2").setContent(new Intent(this, Login.class));
        spec.setIndicator("tab2");
        th.addTab(spec);
        
        th.getTabWidget().setCurrentTab(1);
        
        /*TabSpec firstTabSpec = tabHost.newTabSpec("tid1");
        TabSpec secondTabSpec = tabHost.newTabSpec("tid1");

        firstTabSpec.setIndicator("Artists", context.getResources().getDrawable(R.anim.artists));
        secondTabSpec.setIndicator("Search", context.getResources().getDrawable(R.anim.search));
        
        firstTabSpec.setContent(new Intent(context, FirstTab.class));
        secondTabSpec.setContent(new Intent(context, FirstTab.class));
        
        tabHost.addTab(firstTabSpec);
        tabHost.addTab(secondTabSpec);
     
        tabHost.getTabWidget().setCurrentTab(1);*/
	}
}